﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace MyDemos.Demos
{
    public partial class DependencyPropertyDemo : PhoneApplicationPage
    {
        private int mHeight = 0;


        public DependencyPropertyDemo ()
        {
            InitializeComponent ();
        }

        private void button1_Click (object sender, RoutedEventArgs e)
        {
            mHeight = mHeight + 100;
            if (mHeight > 600)
            {
                mHeight = 0;
            }
            cMyComponent.MyHeight = mHeight;
            textBlock3.Text = cMyComponent.OldValue;
            textBlock4.Text = cMyComponent.NewValue;

        }
    }
}